<?php
/**
 * 公共动作类
 * 作用：用户小动作记录
 * Time：2008-10-27
 * Author：王照暄
 *
 */

class Action {
    public $id;
    public $elementid;
    public $source_uid;
    public $source_nickname;
    public $source_username;
    public $source_realname;
    public $source_sex;
    
    public $target_uid;
    public $target_nickname;
    public $target_username;
    public $target_realname;
    
    public $whatdesc;
    public $valuedesc;
    public $subtime;
    public $privacy;
    
    public $target_read;
    
    public function __construct($id, $elementid, $source_uid, $source_nickname, $source_username, $source_realname, $source_sex, $target_uid, $target_nickname, $target_username, $target_realname, $what_desc, $value_desc,$subtime,$target_read, $privacy = -1) {
        $this->id = $id;
        $this->elementid = $elementid;
        $this->source_uid = $source_uid;
        $this->source_nickname = $source_nickname;
        $this->source_realname = $source_realname;
        $this->source_username = $source_username;
        $this->source_sex = $source_sex;
        $this->target_uid = $target_uid;
        $this->target_nickname = $target_nickname;
        $this->target_realname = $target_realname;
        $this->target_username = $target_username;
        $this->whatdesc = $what_desc;
        $this->valuedesc = $value_desc;
        $this->subtime = $subtime;
        $this->privacy = $privacy;
        $this->target_read = $target_read;        
    }
}
?>
